package com.orange.handler;

import java.sql.SQLException;
import java.util.Map;

import com.orange.dbhelp.page.Page;
import com.orange.modules.entity.manage.AuthOrgUser;

public interface AuthOrgUserService {

	public AuthOrgUser getAuthOrgUserByAccount(String account,String type) throws SQLException;
	
	/**
	 * 保存管理员信息
	 * @param a
	 */
	public void saveAuthOrgUserInfo(AuthOrgUser a);
	
	/**
	 * 根据id查询管理员信息
	 * @param pid
	 * @return
	 */
	public AuthOrgUser queryAuthOrgUserById(String pid);
	
	/**
	 * 分页查询
	 * @throws SQLException 
	 * @throws NumberFormatException 
	 */
	public Page<AuthOrgUser> queryAuthOrgUserByPage(Map<String ,String> map) throws NumberFormatException, SQLException;
	
	/**
	 * 删除
	 */
	public void deleteAuthOrgUserInfo(String pid);
}
